/**
 * "Visual Paradigm: DO NOT MODIFY THIS FILE!"
 * 
 * This is an automatic generated file. It will be regenerated every time 
 * you generate persistence class.
 * 
 * Modifying its content may cause the program not work, or your work may lost.
 */

/**
 * Licensee: VP Development
 * License Type: Purchased
 */
namespace petshop {
	/// <summary>
	/// ORM-Persistable Class
	/// </summary>
	public class PetSetCollection : Orm.Util.ORMSet {
		public PetSetCollection(object owner, Orm.Util.ORMAdapter adapter, int ownerKey, int targetKey, int collType) : base(owner, adapter, ownerKey, targetKey, true, collType) {
		}
		
		public PetSetCollection(object owner, Orm.Util.ORMAdapter adapter, int ownerKey, int collType) : base(owner, adapter, ownerKey, -1, false, collType) {
		}
		
		/// <summary>
		/// Return IEnumerator over the persistent objects
		/// </summary>
		new public System.Collections.IEnumerator GetEnumerator() {
			return base.GetEnumerator();
		}
		
		/// <summary>
		/// Add the specified persistent object to ORMSet.
		/// </summary>
		public void Add(Pet value) {
			base.Add(value, null);
		}
		
		/// <summary>
		/// Remove the specified persistent object
		/// </summary>
		public void Remove(Pet value) {
			base.Remove(value, null);
		}
		
		/// <summary>
		/// Return the boolean of the specified persistent object is existed or not.
		/// </summary>
		public bool Contains(Pet value) {
			return base.Contains(value);
		}
		
		/// <summary>
		/// Return an array containing all of the persistent objects in ORMSet.
		/// </summary>
		public Pet[] ToArray() {
			Pet[] a = new Pet[Size()];
			base.ToArray(a);
			return a;
		}
		
	}
	
}

